home *** CD-ROM | disk | FTP | other *** search
- #!/bin/sh
- #
- # indexsfhtml.sh
- #
- # Testing create wais index of html documents on gruntsco,
- # using wais-sf-1.1
- #
- # This worked 12 May 1995 and as well the
- # script: /usr/local/etc/httpd/cgi-bin/kidsf1.1.pl
- #
- HTML_DOC=/b/httpd/doc
- WAIS_SOURCES=/usr/wais/wais-sources
- WAIS_BIN=.
- WAISINDEX=/usr/local/bin/waisindexsf1.1
- URL_trim=/b/httpd/doc
- URL_prefix=http://gruntsco.pdev.sco.com
- #
- #
- set_trap() {
- trap 'echo "Interrupted! Giving up..."; cleanup 1' 1 2 3 15
- }
-
- cleanup() {
- trap '' 1 2 3 15
- cd $HERE
- exit $1
- }
-
- #
- #
- #
- umask 002
- HERE=`pwd`
- set_trap
- cd $WAIS_SOURCES
-
- find $HTML_DOC -name "*.html" -print | $WAISINDEX -d gruntsco -stdin -mem 10 -contents -t URL $URL_trim $URL_prefix
-
- cd $HERE
- cleanup 0
-
-